import React from 'react';
import { useTheme } from '../store/system/hooks';
import { ThemeProvider as LobeHubThemeProvider } from '@lobehub/ui';

// 主题提供者组件
export const ThemeProvider: React.FC<{ children: React.ReactNode }> = ({ children }) => {
    const { theme } = useTheme();
    console.log(theme);
    return (
        <LobeHubThemeProvider
            themeMode={theme}
            
        >
            {children}
        </LobeHubThemeProvider>
    );
};
